/*
 * @Author: 一日看尽长安花
 * @since: 2022-01-15 13:56:56
 * @LastEditTime: 2022-01-15 20:33:22
 * @LastEditors: 一日看尽长安花
 * @Description:
 */
// webpack的代码都是运行在node js 中的
/**
 * 1. 使用babel-loader和ts-loader
 */
const path = require('path');

module.exports = {
  entry: './src/index.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'knife-kit.js',
    library: {
      name: 'KnifeKit',
      type: 'umd',
    },
  },
  externals: [/node_modules\/.+$/],
};
